﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JMY_Models;
namespace JMY_BLL
{
   public class LoginBLL:BaseBLL<T_User_Infos_Model>
    {
        private const string _type = "LoginDAL";
        private JMY_IDAL.LoginIDAL _DAL;
        public LoginBLL() : base(_type)
        {
            _DAL = base.Dal as JMY_IDAL.LoginIDAL;
            if (_DAL == null)
            {
                throw new NullReferenceException(_type);
            }

        }
        /// <summary>
        /// 注册信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int LoginsInfo(T_User_Infos_Model m)
        {
            return _DAL.LoginsInfo(m);
        }
        public int UserLogin(T_User_Infos_Model s)
        {
            return _DAL.UserLogin(s);
        }
    }
}
